﻿<%@ Page Title="编辑KPI" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="KPIEdit.aspx.cs" Inherits="KPI.KPIEdit" %>

<%@ Register Src="Controls/Messages.ascx" TagName="Messages" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
	<script src="Scripts/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
	<script src="Scripts/jquery.ui.datepicker-zh-cn.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(window).load(function () {

			buildRangeDatePicker("#txtKPIStartTime", "#txtKPIFinishTime");

		});
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="pagetitle">
		<span>编辑KPI </span>
	</div>
	<uc3:messages id="Messages1" runat="server" />
	<fieldset>
		<legend>KPI</legend>
		<div id="kpiform" class="kpiform">
			<table cellpadding="8" cellspacing="0" border="0">
				<tr>
					<td>
						<label for="txtKPIContent">KPI内容:</label>
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtKPIContent" runat="server" ValidationGroup="kpi" MaxLength="768" TextMode="MultiLine" Columns="100" Rows="7"
							ClientIDMode="Static"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvKPIContent" Display="Dynamic" CssClass="failurenotification" runat="server" ControlToValidate="txtKPIContent"
							ErrorMessage="KPI内容不能为空." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="KPI内容不能为空.">KPI内容不能为空</asp:RequiredFieldValidator>
						<asp:CustomValidator ID="cusvKPIContent" runat="server" CssClass="failurenotification" Display="Dynamic" ClientValidationFunction="checkKPIContentMaxLength"
							OnServerValidate="cusvKPIContent_ServerValidate" ValidationGroup="kpi" ControlToValidate="txtKPIContent" ErrorMessage="KPI内容字数限制在500字以内"
							ToolTip="KPI内容字数限制在500字以内">KPI内容字数限制在500字以内</asp:CustomValidator>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIContent">措施:</label>
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtActionPlan" runat="server" MaxLength="768" TextMode="MultiLine" Columns="100" Rows="6" ClientIDMode="Static"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvActionPlan" Display="Dynamic" CssClass="failurenotification" runat="server" ControlToValidate="txtActionPlan"
							ErrorMessage="措施必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="措施必填.">措施必填</asp:RequiredFieldValidator>
						<asp:CustomValidator ID="cusvActionPlan" runat="server" CssClass="failurenotification" Display="Dynamic" ClientValidationFunction="checkActionPlanMaxLength"
							OnServerValidate="cusvActionPlan_ServerValidate" ValidationGroup="kpi" ControlToValidate="txtActionPlan" ErrorMessage="措施字数限制在500字以内"
							ToolTip="措施字数限制在500字以内">措施字数限制在500字以内</asp:CustomValidator>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIStartTime">开始日期:</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIStartTime" runat="server" ValidationGroup="kpi" ClientIDMode="Static" Width="140"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvKPIStartTime" CssClass="failurenotification" runat="server" ControlToValidate="txtKPIStartTime"
							ErrorMessage="开始日期不能为空." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="开始日期不能为空.">开始日期不能为空</asp:RequiredFieldValidator>
					</td>
					<td>
						<label for="txtKPIFinishTime">完成日期:</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIFinishTime" runat="server" ValidationGroup="kpi" ClientIDMode="Static" Width="140"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvKPIFinishTime" CssClass="failurenotification" runat="server" ControlToValidate="txtKPIFinishTime"
							ErrorMessage="完成日期不能为空." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="完成日期不能为空.">完成日期不能为空</asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIResponseDept">责任科室:</label>
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtKPIResponseDept" runat="server" ValidationGroup="kpi" MaxLength="128" ClientIDMode="Static" Width="320"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvKPIResponseDept" CssClass="failurenotification" runat="server" ControlToValidate="txtKPIResponseDept"
							ErrorMessage="责任科室不能为空." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="责任科室不能为空.">责任科室不能为空</asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIResponsablePerson">负责人:</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIResponsablePerson" runat="server" ValidationGroup="kpi" MaxLength="128" ClientIDMode="Static" Width="320"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvKPIResponsablePerson" CssClass="failurenotification" runat="server" ControlToValidate="txtKPIResponsablePerson"
							ErrorMessage="负责人不能为空." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="负责人不能为空.">负责人不能为空</asp:RequiredFieldValidator>
					</td>
					<td>
						<label for="txtKPIRPTel">负责人电话:</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIRPTel" runat="server" MaxLength="64" ClientIDMode="Static" Width="320"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIResponsibleLeadership">分管领导:</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIResponsibleLeadership" runat="server" ValidationGroup="kpi" MaxLength="128" ClientIDMode="Static"
							Width="320"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvKPIResponsibleLeadership" CssClass="failurenotification" runat="server" ControlToValidate="txtKPIResponsibleLeadership"
							ErrorMessage="分管领导不能为空." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="分管领导不能为空.">分管领导不能为空</asp:RequiredFieldValidator>
					</td>
					<td>
						<label for="txtKPIRLTel">分管领导电话:</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIRLTel" runat="server" ClientIDMode="Static" Width="320" MaxLength="64"></asp:TextBox>
					</td>
				</tr>
			</table>
			<div class="buttonscontainer">
				<asp:Button ID="btnSave" runat="server" CssClass="button" Text="保 存" ValidationGroup="kpi" OnClick="btnSave_Click" ToolTip="点击保存KPI信息" />
				<asp:Button ID="btnDelete" runat="server" CssClass="button" Text="删 除" OnClick="btnDelete_Click" ToolTip="点击删除该KPI" />
				<asp:Button ID="btnDeleteComplete" runat="server" CssClass="button" Text="彻底删除" OnClick="btnDeleteComplete_Click" ToolTip="点击彻底删除该KPI" />
				<asp:Button ID="btnCancel" runat="server" CssClass="button" Text="取 消" OnClick="btnCancel_Click" />
			</div>
		</div>
	</fieldset>
</asp:Content>
